﻿<%@ Page Language="C#" MasterPageFile="~/Client.master" AutoEventWireup="true" CodeFile="Sanpham_Chitiet.aspx.cs"
    Inherits="Sanpham_Chitiet" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .legend
        {
            -webkit-border-radius: 5px;
            text-align: center;
            vertical-align: middle;
            font-size: 15px;
            font-family: "Palatino Linotype";
        }
        .dl
        {
            -webkit-border-radius: 5px;
            width: 830px;
        }
        .tthover
        {
            color: Purple;
            border-style: hidden;
            font-family: "Palatino Linotype";
        }
        .thongtin
        {
            font-weight: bold;
            color: #17658C;
            font-size: 18px;
            font-family: "Palatino Linotype";
        }
        .linkbutton
        {
            text-decoration: none;
            font-size: 15px;
            font-family: "Palatino Linotype";
            background-image: url('/Online/Img/a (2).jpg');
            padding: 5px;
            color: White;
            -webkit-border-radius: 3px;
            border-style: hidden;
            height: 30px;
            margin-top: 10px;
        }
        .linkbutton:hover
        {
            background-color: #829FB3;
            cursor: pointer;
        }
        .tieude2
        {
            background-color: #829FB3;
            width: 820px;
            font-weight: bold;
            padding-left: 5px;
            padding-top: 3px;
            height: 25px;
            font-family: "Palatino Linotype";
            color: White;
            float: left;
        }
        
        .gia
        {
            color: Red;
            font-family: Palatino Linotype;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="pnanel" runat="server">
        <ContentTemplate>
            <div class="tieude2">
                <asp:Label ID="lbnhan" runat="server" Text=""></asp:Label>
            </div>
            <div style="width: 824px;">
                <div id="hinha" style="width: 430px; float: left; background-color: #FFFFFF;">
                    <asp:Image ID="hinhanh" runat="server" Width="400px" Height="333px" />
                </div>
                <div style="width: 380px; float: left; -webkit-border-radius: 5px;">
                    <fieldset id="field">
                        <legend class="legend" style="-webkit-border-radius: 5px;">Tính năng nổi bật</legend>
                        <span style="font-family: Palatino Linotype; font-size: 15px;">
                            <asp:Label ID="tinhnang" runat="server"></asp:Label><br />
                        </span>Tên sản phẩm :<span class="thongtin">
                            <asp:Label ID="tensp" runat="server"></asp:Label><br />
                        </span>Giá bán :<span class="thongtin">
                            <asp:Label ID="gia" runat="server"></asp:Label><br />
                        </span>Tình trạng:<span class="thongtin">
                            <asp:Label ID="tinhtrang" runat="server"></asp:Label></span><br />
                        <br />
                        <asp:Button ID="addgiohang" Text="Thêm vào giỏ hàng" ValidationGroup="Them" CssClass="linkbutton" runat="server"
                            OnClick="addgiohang_Click"></asp:Button>
                        Số lượng:
                        <asp:TextBox ID="txtSoLuong" runat="server" Style="text-align: center;" MaxLength="3"
                            CssClass="txt" Height="23px" Text="1" Width="100px"></asp:TextBox>
                        <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Custom,Numbers"
                            TargetControlID="txtSoLuong" ValidChars="" />
                        <asp:RequiredFieldValidator ValidationGroup="Them" ID="RequiredFieldValidator5" runat="server"
                            ControlToValidate="txtSoLuong" ErrorMessage="Nhập số lượng" Display="None" Text="*"></asp:RequiredFieldValidator>
                    </fieldset>
                </div>
                <fieldset class="legend" style="width: 795px;">
                    <legend class="legend">Thông tin sản phẩm</legend><span style="font-family: Palatino Linotype;">
                        <asp:Label ID="ttsp" runat="server"></asp:Label>
                    </span>
                </fieldset>
                <asp:ValidationSummary ID="ValidationSummary1" HeaderText="Bạn phải nhập các trường sau:"
                    ShowMessageBox="true" ValidationGroup="Them" ShowSummary="false" EnableClientScript="true"
                    runat="server" />
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="addgiohang" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="pro" runat="server" AssociatedUpdatePanelID="pnanel">
    </asp:UpdateProgress>
    <div class="tieude2">
        Sản phẩm cùng loại</div>
    <div style="width: 825px; margin-bottom: 10px; color: White; margin-top: 10px; -webkit-border-radius: 5px;">
        <asp:DataList ID="dlcungloai" runat="server" RepeatColumns="4" BackColor="White"
            CssClass="dl">
            <ItemTemplate>
                <asp:Panel ID="showtt" runat="server">
                    <div style="width: 310px; -webkit-border-radius: 5px; border: 1px solid #c6c6c6;
                        background-color: lavender;">
                        <div style="margin-top: 0px;">
                            <div style="text-align: center; width: 310px; font-weight: bold; color: Purple; font-family: Palatino Linotype;">
                                Tính năng nổi bật</div>
                            <hr />
                            <asp:Label ID="ladsd3" runat="server" CssClass="tthover" Text='<%#Eval("TinhNangNB").ToString().Replace("@", "<br>* ") %>'></asp:Label>
                        </div>
                    </div>
                </asp:Panel>
                <table cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #e6e6e6;
                    margin: 3px; -webkit-border-radius: 5px;" width="185px">
                    <tr>
                        <td align="center" width="100px" style="padding-top: 3px; padding-bottom: 3px; border-color: #CCCCCC;
                            border-style: hidden; text-align: center;">
                            <a href='<%#"/Online/San-pham/"+Eval("Alisa")+".html" %>'>
                                <asp:Image ID="IMG" runat="server" Width="80px" Height="80px" ImageUrl='<%#Eval("Hinhanh") %>' />
                            </a>
                            <cc1:HoverMenuExtender ID="HoverMenuExtender1" runat="server" DynamicServicePath=""
                                Enabled="True" TargetControlID="IMG" PopupPosition="Right" CacheDynamicResults="true"
                                PopupControlID="showtt" EnableViewState="true">
                            </cc1:HoverMenuExtender>
                        </td>
                    </tr>
                    <tr>
                        <td style="border-color: #CCCCCC; border-style: hidden; text-align: center;">
                            <a href='<%#"/Online/San-pham/"+Eval("Alisa")+".html" %>' style="text-decoration: none;">
                                <asp:Label ID="TenspLabel" CssClass="tensp" runat="server" Text='<%# Eval("Tensp") %>' /></a>
                        </td>
                    </tr>
                    <tr>
                        <td style="border-color: #CCCCCC; border-style: hidden; text-align: center;">
                            <asp:Label ID="GiabanLabel" CssClass="gia" runat="server" Text='<%# Eval("Giaban","{0:0,000}")+"VNĐ" %>' />
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList><br />
    </div>
</asp:Content>
